package com.g.ocache.index;

import java.util.Comparator;

/**
 * 
 * @author zhangyf
 * @param <K>
 * @param <V>
 */
public interface IndexBuilder<K, V> {
	
	int getMaxDepth();
	
	Object[] build(K key, V value);
	
	Comparator<K> getLeafComparator(); 
	
	Comparator<Object> getNodeComparator(int depth); 
}
